package com.leyou.service;

import com.leyou.pojo.SpecGroup;
import com.leyou.pojo.SpecParam;

import java.util.List;

public interface SpecificationService {

    /**
     * 根据商品分类id获取规格组列表
     *
     * @param cid
     * @return
     */
    List<SpecGroup> querySpecGroupByCid(Long cid);

    /**
     * 查询规格参数
     *
     * @param gid
     * @param cid
     * @param searching
     * @param generic
     * @return
     */
    List<SpecParam> querySpecParamList(Long gid, Long cid, Boolean searching, Boolean generic);

    void addSpecGroup(SpecGroup group);

    void updSpecGroup(SpecGroup group);

    void delSpecGroup(Long id);

    void addSpecParam(SpecParam param);

    void updSpecParam(SpecParam param);

    void delSpecParam(Long id);

}
